package com.weayer.remote;

import com.weayer.dto.ResponseResult;
import com.weayer.request.SendVerificationCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @description: Api服务 - 乘客 - 调用服务 service-passenger-user
 * @author: Weayer
 **/
@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {
    @RequestMapping(method = RequestMethod.POST, value = "/user")
    ResponseResult loginOrRegister(@RequestBody SendVerificationCodeDTO verificationCodeDTO);

    @RequestMapping(method = RequestMethod.GET, value = "/user/{passengerPhone}")
    ResponseResult getUserInfo(@PathVariable("passengerPhone") String passengerPhone);
}
